//
//  CustomLayout.h
//  15-homework-Customlayout-wangyi
//
//  Created by 王道林 on 16/8/3.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CustomLayoutDelegate <NSObject>
@optional
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout heightForItemAtIndexPath:(NSIndexPath *)indexPath;
@end

@interface CustomLayout : UICollectionViewLayout

@property (nonatomic, assign) CGFloat sectionInsert;
@property (nonatomic, assign) CGFloat cellMargin;
@property (nonatomic, weak) id<CustomLayoutDelegate> delegate;
@end
